package com.medical.acc.mapper;

import com.medical.common.paginator.domain.PageBounds;
import com.medical.common.paginator.domain.PageList;
import com.medical.acc.model.Account;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
@Mapper
public interface AccountMapper {
    int deleteByPrimaryKey(String id);

    int insert(Account record);

    Account selectByPrimaryKey(String id);

    List<Account> selectAll(Boolean administrator);

    void updateByPrimaryKey(Account record);
    
    Account selectByOpenId(String openId);
    
    Account selectByUserId(String userId);
    
    PageList<Account> selectList(Map<String, Object> params, PageBounds pageBounds);
}